<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="renderer" content="webkit">
    <meta name="author" content="www.dkewl.com"/>
    <meta name="robots" content="all"/>
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,shrink-to-fit=no">

    <title>{% block title %}逐梦之家{% endblock %}</title>

    <link rel="stylesheet" href="../../static/bootstrap/bootstrap.css">
    <script src="../../static/jquery/jquery.3.6.min.js"></script>
    <script src="../../static/bootstrap/bootstrap.js"></script>
    <link rel="stylesheet" href="../../static/css/init.css">
    <link rel="stylesheet" href="../../static/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="../../static/css/blog.css"/>

    {% block link %}


    {% endblock %}

</head>

<body>

<div class="all">
    <!-- 导航条 -->
    <div class="header0 content-all0">
        <nav class="navbar navbar-expand-lg navbar-dark bg-dark ">
            <div class="container">
                <a class="navbar-brand" href="{{ url_for('index.bbs') }}">逐梦之家</a>
                <button class="navbar-toggler" type="button" data-toggle="collapse"
                        data-target="#navbarSupportedContent"
                        aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarSupportedContent">
                    <ul class="navbar-nav mr-auto">
                        <li class="nav-item active">
                            <a class="nav-link" href="{{ url_for('index.bbs') }}">逐梦论坛 <span
                                    class="sr-only">(current)</span></a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="{{ url_for('index.bbs') }}">逐梦圈</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="#">逐梦资源站</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="#">AI工具</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="#">游戏官网</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="{{ url_for('index.story') }}">关于我们</a>
                        </li>
                    </ul>
                    <form class="form-inline my-2 my-lg-0">
                        <input class="form-control mr-sm-2" placeholder="关键字" aria-label="Search"
                               id="keyword">
                        <button class="btn btn-outline-success my-2 my-sm-0" id="doSearch">搜索
                        </button>
                    </form>
                </div>
                <div class="d-flex align-items-center" style="margin-left: 50px;">
                    {% if user %}
                        <div class="avatar-container">
                            <img style="width: 52px;height: 52px" class="rounded-circle avatar-image"
                                 src="{{ url_for('static',filename = 'photo/' + user.photo) }}" alt="" id="photo">
                            <div class="dropdown-content">
                                <span>{{ user.username }}</span>
                                <p></p>
                                <hr>
                                <div style="display: flex;justify-content: space-around">
                                    <span>1</span>
                                    <span>2</span>
                                    <span>3</span>
                                </div>
                                <div style="display: flex;justify-content: space-around">
                                    <span>粉丝</span>
                                    <span>关注</span>
                                    <span>获赞</span>
                                </div>
                                <hr>
                                <a class="dropdown-item" href="#">个人中心</a>
                                <hr>
                                <a class="dropdown-item" href="#">我的发表</a>
                                <hr>
                                <a class="dropdown-item" href="/user/logout">退出登录</a>
                                <hr>
                            </div>
                        </div>
                        <a class="nav-link ml-3" href="{{ url_for('index.public_article') }}">发布文章</a>
                    {% else %}
                        <a class="nav-link ml-3" href="{{ url_for('user.login') }}">登录</a>
                        <a class="nav-link" href="{{ url_for('user.register') }}">注册</a>
                    {% endif %}
                </div>
            </div>
        </nav>
    </div>


    <div class="content-all0">
        {% block content %}
            <!-- 文章内容 -->
        {% endblock %}
    </div>


    <!-- 底部 -->
    <div class="container-fluid footer">
        <div class="container">
            <div class="row">
                <div class="col-4 left">
                    <p>版权所有 &copy; 逐梦大陆 (4.0)</p>
                    <p>备案号：<a href="" target="_blank">123456789</a></p>
                    <p><a href="" target="_blank">服务器游戏官网</a>&nbsp;&nbsp;&nbsp;<br>
                        <a href="" target="_blank">友情链接</a>&nbsp;&nbsp;&nbsp;
                        <a href="" target="_blank">免责声明</a>&nbsp;&nbsp;&nbsp;<br>
                        <a href="" target="_blank">业务合作</a>
                    </p>
                </div>
                <div class="col-4 center">
                    <p>逐梦之家</p>
                    <p style="color: white">
                        逐梦工作室，成立于2022年2月，主要业务为网站开发、mc服务器运营，我们致力于打造美好的mc游戏环境以及维护网站，让网站更加丰富多彩</p>
                    {#                    <p><a href="" target="_blank">服务器游戏官网</a>&nbsp;&nbsp;&nbsp;#}
                    {#                        <a href="" target="_blank">交流朋友圈</a>&nbsp;&nbsp;&nbsp;#}
                    {#                        <a href="" target="_blank">商务合作</a>&nbsp;&nbsp;&nbsp;#}
                    {#                        <a href="" target="_blank">技术分享</a>#}
                    {#                    </p>#}

                </div>
                <div class="col-4 right">
                    <p>联系我们</p>
                    <p><img src="../../static/image/index/官网.png" alt="" style="width: 50px;height: 50px;"></p>
                    <p>扫码进群</p>

                </div>

            </div>
        </div>
    </div>


    {% block bottom %}
    {% endblock %}

</div>


</body>
<script>
$('#doSearch').click(function(event){
       event.preventDefault();
       var keyword = $('#keyword').val();
       if (keyword.length == 0 || keyword.length >10 || keyword.indexOf('%')>=0){
            window.alert('你搜索的关键字不合法');
            $('#keyword').focus();
            return false;
       }
       window.location.href = '/search/' + keyword + '-1';
});









</script>

</html>
